import Request from "../../../../utils/request.js";
// import cardRequest from "../../../../utils/cardRequest.js";
import Config from '../../../../utils/config2.js'

export default class {
    static getDetail(params) {
        return Request({
            url: `rs-game-center-service/activity/gameActivity/detail`,
            type: "GET",
            data: params,
            headers: {
                "Content-type": "application/x-www-form-urlencoded"
              },
        })
    }
    static addUserServ(params) {
        return Request({
            url: `rs-game-center-service/activity/gameActivityUser/add`,
            type: "POST",
            data: params
        })
    }
    static inviteCountServ(params) {
        return Request({
            url: `rs-game-center-service/activity/gameActivityUser/invitation`,
            type: "POST",
            data: params
        })
    }
    static userDetailServ(params) {
        return Request({
            url: `rs-game-center-service/activity/gameActivityUser/detail`,
            type: "GET",
            data: params,
            headers: {
                "Content-type": "application/x-www-form-urlencoded"
              },
        })
    }
    static getGamePrizeList(params = {}) {
        return Request({
          url: "rs-game-center-service/activity/gameActivityUserPrize/list",
          type: "GET",
          data: params,
          headers: {
            "Content-type": "application/x-www-form-urlencoded"
          },
        })
      }

      static getHighSetData(params) {
        return Request({
          url: `rs-game-center-service/activity/gameActivity/advancedSettingDetail`,
          type: "GET",
          data: params,
          headers: {
            "Content-type": "application/x-www-form-urlencoded"
          },
        })
      } 

      static assistanceServ(params) {
        return Request({
            url: `rs-game-center-service/activity/gameActivityUser/assistance`,
            type: "POST",
            data: params,
            // headers: {
            //     "Content-type": "application/x-www-form-urlencoded"
            //   },
        })
    }

    static queryList(params) {
      return Request({
          url: `${Config.coreHost}/app/HomeRecommend/queryList`,
          type: "POST",
          data: params,
          // headers: {
          //     "Content-type": "application/x-www-form-urlencoded"
          //   },
      })
    }

  static checkUserServ(params) {
    return Request({
      url: `rs-game-center-service/activity/gameActivityUser/checkActivityIdentity`,
      type: "POST",
      data: params,
    })
  }
}
